// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_distributionlists
// * CreateDate    : 2014-06-05 18:29:55
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:55
// * LastChanger   : 2014-06-05 18:29:55
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmDistributionlistsEntity : EntityBase
    {
        public HmDistributionlistsTable TableSchema
        {
            get
            {
                return HmDistributionlistsTable.Current;
            }
		}
		
		public HmDistributionlistsEntity()
        {

        }
		
		public HmDistributionlistsEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Distributionlistid = Convert.ToInt32(CommonFunctions.ToObject(dr["distributionlistid"]));
			this.Distributionlistdomainid = Convert.ToInt32(CommonFunctions.ToObject(dr["distributionlistdomainid"]));
			this.Distributionlistaddress = Convert.ToString(CommonFunctions.ToObject(dr["distributionlistaddress"]));
			this.Distributionlistenabled = Convert.ToByte(CommonFunctions.ToObject(dr["distributionlistenabled"]));
			this.Distributionlistrequireauth = Convert.ToByte(CommonFunctions.ToObject(dr["distributionlistrequireauth"]));
			this.Distributionlistrequireaddress = Convert.ToString(CommonFunctions.ToObject(dr["distributionlistrequireaddress"]));
			this.Distributionlistmode = Convert.ToByte(CommonFunctions.ToObject(dr["distributionlistmode"]));
        }
		
		public HmDistributionlistsEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Distributionlistid = Convert.ToInt32(CommonFunctions.ToObject(dr["distributionlistid"]));
			this.Distributionlistdomainid = Convert.ToInt32(CommonFunctions.ToObject(dr["distributionlistdomainid"]));
			this.Distributionlistaddress = Convert.ToString(CommonFunctions.ToObject(dr["distributionlistaddress"]));
			this.Distributionlistenabled = Convert.ToByte(CommonFunctions.ToObject(dr["distributionlistenabled"]));
			this.Distributionlistrequireauth = Convert.ToByte(CommonFunctions.ToObject(dr["distributionlistrequireauth"]));
			this.Distributionlistrequireaddress = Convert.ToString(CommonFunctions.ToObject(dr["distributionlistrequireaddress"]));
			this.Distributionlistmode = Convert.ToByte(CommonFunctions.ToObject(dr["distributionlistmode"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmDistributionlistsTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Distributionlistid
        {
            get { return Convert.ToInt32(GetData(HmDistributionlistsTable.C_distributionlistid)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistid, value); }
        }
		
        [DataMember]
        public int Distributionlistdomainid
        {
            get { return Convert.ToInt32(GetData(HmDistributionlistsTable.C_distributionlistdomainid)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistdomainid, value); }
        }
		
        [DataMember]
        public string Distributionlistaddress
        {
            get { return Convert.ToString(GetData(HmDistributionlistsTable.C_distributionlistaddress)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistaddress, value); }
        }
		
        [DataMember]
        public byte Distributionlistenabled
        {
            get { return Convert.ToByte(GetData(HmDistributionlistsTable.C_distributionlistenabled)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistenabled, value); }
        }
		
        [DataMember]
        public byte Distributionlistrequireauth
        {
            get { return Convert.ToByte(GetData(HmDistributionlistsTable.C_distributionlistrequireauth)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistrequireauth, value); }
        }
		
        [DataMember]
        public string Distributionlistrequireaddress
        {
            get { return Convert.ToString(GetData(HmDistributionlistsTable.C_distributionlistrequireaddress)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistrequireaddress, value); }
        }
		
        [DataMember]
        public byte Distributionlistmode
        {
            get { return Convert.ToByte(GetData(HmDistributionlistsTable.C_distributionlistmode)); }
            set { SetData(HmDistributionlistsTable.C_distributionlistmode, value); }
        }
		
		#endregion
	}
	
	
}	

